package com.haogu.controller;

import com.haogu.pojo.Result;
import com.haogu.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
// http://127.0.0.1:8080/api/car
// http://127.0.0.1:8080/car
@RestController
@RequestMapping("employee")
public class EmployeeController {
    @Autowired
    private EmployeeService employeeService;
    @GetMapping
    public Result findAll(){
        return Result.success(employeeService.findAll());
    }

}
